package com.lizx.persional.dao;

import com.baomidou.mybatisplus.mapper.EntityWrapper;
import com.lizx.persional.entity.Resources;
import com.lizx.persional.common.base.SuperMapper;
import com.lizx.persional.entity.vo.MenuSelectVo;
import org.apache.ibatis.annotations.Param;
import org.mybatis.spring.annotation.MapperScan;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author 李振兴
 * @since 2018-02-27
 */
public interface ResourcesDao extends SuperMapper<Resources> {

    /**
     * 获取菜单
     *
     * @param userId
     * @param ew
     * @return
     */
    List<MenuSelectVo> selectMenuByUserId(@Param("userId") Long userId, @Param("ew") EntityWrapper<Resources> ew);

    /**
     * 获取用户资源列表
     *
     * @param userId
     * @return
     */
    List<Resources> selectAllResourceByUserId(@Param("userId") Long userId);
}
